<template>
    <div class="m-content">
        <Form ref="loginRef" :model="loginData" :rules="loginRules">
            <FormItem prop="user">
                <Input type="text" v-model="loginData.user" placeholder="Username"></Input>
            </FormItem>
            <FormItem prop="password">
                <Input type="password" v-model="loginData.password" placeholder="Password"></Input>
            </FormItem>
            <FormItem>
                <Button type="primary" @click="handleSubmit('loginRef')">登录</Button>
            </FormItem>
        </Form>
    </div>
</template>
<script>
import mainJs from './login'
export default mainJs
</script>

<style lang ="scss">
    @import './login'
</style>
